package com.cjack.frenchexcel.dao;

import com.cjack.frenchexcel.enumInfo.DataDefineTypeEnum;
import com.cjack.frenchexcel.table.DataDefineTable;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by root on 4/22/19.
 */
public interface DataDefineDao extends JpaRepository< DataDefineTable, Long> {

    DataDefineTable findByTypeAndDataKey( DataDefineTypeEnum type, String dataKey);

    DataDefineTable findByTypeAndDataValue( DataDefineTypeEnum type, String dataValue);
}
